package Day017_缓冲流_转换流_序列化流_打印流.ZuoYe;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;

/**
 * @author zhangyan
 * @date 2020/5/9 18:04
 */
public class Test1 {
    public static void main(String[] args) throws Exception{

        //创建一个字节缓冲输出流对象
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("Demo02\\aaa\\d.txt"));

        //写入字节数据
        bos.write(98);
        bos.write('a');

        //关流
        bos.close();
    }
}
